{{!
  Copyright (c) HashiCorp, Inc.
  SPDX-License-Identifier: BUSL-1.1
~}}

{{#if this.job.hasPlacementFailures}}
  <Hds::Alert @type="inline" @color="critical" data-test-placement-failures class="boxed-section placement-failures" as |A|>
    <A.Title>Placement Failures</A.Title>
    <A.Description>
      {{#each this.job.taskGroups as |taskGroup|}}
        <PlacementFailure @taskGroup={{taskGroup}} />
      {{/each}}
    </A.Description>
  </Hds::Alert>
{{/if}}
